package com.gok.einvoice.web.controller.employee;

import com.gok.einvoice.common.core.controller.BaseController;
import com.gok.einvoice.common.core.domain.AjaxResult;
import com.gok.einvoice.common.core.page.TableDataInfo;
import com.gok.einvoice.web.dto.EmployeePageDTO;
import com.gok.einvoice.web.service.IEmployeeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 员工Controller
 * 
 * @author ruoyi
 * @date 2025-01-24
 */
@RestController
@RequestMapping("/employee")
@Api(tags = "员工管理")
public class EmployeeController extends BaseController
{
    @Autowired
    private IEmployeeService employeeService;

    @PostMapping("/page")
    @ApiOperation("员工列表分页")
    public TableDataInfo page(@RequestBody EmployeePageDTO pageDTO) {
        return employeeService.pageQuery(pageDTO);
    }
}
